<template>
    <div class="search">
        <Row :gutter="16" class="all-height">
            <Col :span="24" class="all-height">
                <Card class="all-height card-child-height">
                    <Form ref="form" :model="form" :label-width="130" label-position="left" class="marginForm">
                        <p class="drawer-title">档案转递信息</p>
                        <FormItem label="转递类型" prop="transferType">
                            <!--                <Select v-model="form.transferType" clearable>-->
                            <!--                  <Option value="0">请自行编辑下拉菜单</Option>-->
                            <!--                </Select>-->
                            <Input v-model="form.transferType" clearable style="width: 200px" />
                        </FormItem>
                        <FormItem label="转递单位名称" prop="unitName">
                            <Input v-model="form.unitName" clearable style="width: 200px" />
                        </FormItem>
                        <FormItem label="转递单位所在地" prop="unitLocation">
                            <!--                <Select v-model="form.unitLocation" clearable>-->
                            <!--                  <Option value="0">请自行编辑下拉菜单</Option>-->
                            <!--                </Select>-->
                            <Input v-model="form.unitLocation" clearable style="width: 200px" />
                        </FormItem>
                        <FormItem label="转递详细地址" prop="unitAddress">
                            <Input v-model="form.unitAddress" clearable style="width: 200px" />
                        </FormItem>
                        <FormItem label="转递单位邮编" prop="unitZip">
                            <Input v-model="form.unitZip" clearable style="width: 200px" />
                        </FormItem>
                        <FormItem label="转递单位联系人" prop="unitContact">
                            <Input v-model="form.unitContact" clearable style="width: 200px" />
                        </FormItem>
                        <FormItem label="转递单位联系电话" prop="unitTel">
                            <Input v-model="form.unitTel" clearable style="width: 200px" />
                        </FormItem>
                        <FormItem label="是否确认" prop="isConfirm">
                            <RadioGroup v-model="form.isConfirm">
                                <Radio label="0">否</Radio>
                                <Radio label="1">是</Radio>
                            </RadioGroup>
                        </FormItem>
                    </Form>
                </Card>
            </Col>
        </Row>
    </div>
</template>

<script>
import { shortcuts } from '@/libs/shortcuts';
import excel from '@/libs/excel';

export default {
    name: 'archiveTransferInfo',
    components: {},
    data() {
        return {
            form: {
                // 添加或编辑表单对象初始化数据
                bysId: '',
                transferType: '',
                unitName: '',
                unitLocation: '',
                unitAddress: '',
                unitZip: '',
                unitContact: '',
                unitTel: '',
                isConfirm: ''
            }
        };
    },
    methods: {
        init() {
            this.getData();
        },

        getData() {
            // 带多条件搜索参数获取表单数据 请自行修改接口
            this.postRequest('/archiveTransferInfo/getCurrentUserDa').then(res => {
                this.loading = false;
                if (res.success) {
                    this.form = res.result;
                }
            });
        }
    },
    mounted() {
        this.init();
    }
};
</script>
<style lang="less">
@import '../../personInfo.less';
// 建议引入通用样式 具体路径自行修改 可删除下面样式代码
@import '../../../styles/table-common.less';

.search {
    .operation {
        margin-bottom: 2vh;
    }

    .select-count {
        font-weight: 600;
        color: #40a9ff;
    }

    .select-clear {
        margin-left: 10px;
    }

    .page {
        margin-top: 2vh;
    }

    .drop-down {
        margin-left: 5px;
    }
}
</style>
